<template>
  <div class="home">
    <p>这是二级路由</p>
    
   
      <router-link to="/home/chose">开启列表</router-link> |
      <router-link :to="'/home/shown/'+thing">展示信息</router-link>
    <keep-alive><router-view v-if="$route.meta.keepAlive"></router-view></keep-alive>
    <router-view v-if="!$route.meta.keepAlive"></router-view>
    <!-- <router-view></router-view> -->
  </div>
</template>

<script>
// @ is an alias to /src

export default {
  name: 'HomeView',
  data(){
      return{
          thing:this.$route.params.thing
      }
  }
}
</script>
